package com.marvels.loanapply.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import com.marvels.loanapply.api.MclaLinkmanMobileApi;
import com.marvels.loanapply.dto.MclaLoanApplyLinkmanDTO;

@RequestMapping("/loanApply/linkmanMobile/api")
@RestController
public class LinkmanMobileController {

	@Autowired
	private MclaLinkmanMobileApi linkManMobile;
	
	@RequestMapping("selectByLoanId")
	@ResponseBody
	public List<MclaLoanApplyLinkmanDTO> selectByLoanId(@RequestBody MclaLoanApplyLinkmanDTO dto){
		
		return linkManMobile.selectByLoanId(dto.getLoanId());
	}
}
